@import './transition.less';
@import './modal.less';
@import './font.less';

// button
.g-btn {
  display: inline-block;

  color: #fff;
  height: 0.36rem;
  font-size: 0.14rem;
  line-height: 0.2rem;
  padding: 0.08rem 0.2rem;
  border-radius: 0.18rem;
  background: linear-gradient(90deg, #ff88b6, #79a3ff);
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);

  &[block] {
    // 块级元素按钮 占容器宽度的100%
    width: 100%;
    display: block;
    text-align: center;
  }

  &[text] {
    // 文本类型的按钮
    background: none;
    color: #fa7298;
    text-align: center;
    box-shadow: none;
  }
  &[ghots] {
    color: #333;
    background: none;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  &:active {
    opacity: 0.8;
  }

  &.g-btn--small {
    // 小按钮
    height: 0.24rem;
    font-size: 0.12rem;
    line-height: 0.12rem;
    border-radius: 0.12rem;
    box-shadow: none;
    padding: 0.07rem 0.1rem;
  }
  &.g-btn--larget {
    // 大按钮
    height: 0.55rem;
    font-size: 0.18rem;
    line-height: 0.25rem;
    border-radius: 0.28rem;
    box-shadow: none;
    padding: 0.15rem 0;
  }

  &.g-btn--disabled {
    // 禁用类型
    background: #ccc;
    box-shadow: none;
  }
}

// tab
.g-tab {
  .van-tabs__wrap {
    height: 0.54rem;
    border-bottom: 1px solid #eee;
  }
  .van-tabs__line {
    background-color: #fa7298;
  }
}

// common mark
.mark {
  height: 0.18rem;
  background: linear-gradient(180deg, #ff6666, #ff3636);
  border-radius: 0.09rem 0.09rem 0.09rem 0.02rem;
  padding: 0 0.05rem;
  font-size: 0.12rem;
  line-height: 0.18rem;
  color: #fff;
}

// 顶部的阴影
.head-shodow {
  position: fixed;
  top: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.3);
  z-index: 8;
}

.aline {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.username {
  color: #fa7298;
}
